import request from '../axios'

/**
 * 邮箱登录
 * @param data
 */
export function login(data) {
    return request({
        url: 'login/login',
        method: 'post',
        data,
        headers: {'Content-Type': 'application/x-www-form-urlencoded'}
    })
}

/**
 * 注册
 * @param data
 */
export function userRegister(data) {
    return request({
        url: 'login/userRegister',
        method: 'post',
        data,
        headers: {'Content-Type': 'application/x-www-form-urlencoded'}
    })
}
